/**
* @author AlbertDarren
* @contact 2563491540@qq.com
*/
#include <cstdio>
#include <cstring>
using namespace std;
const int N=9;
int main_1001_1()
{
    int a,b,sum=0,len,j,k=0;
    scanf("%d %d",&a,&b);
    sum=a+b;
    char res[N]={0};
    sprintf(res,"%d",sum);
    len=strlen(res);
    if (sum>=0)
    {
        j=0;
    }
    else
    {
        j=1;
        printf("-");
    }
    for (int i=j;i<len ;++i )
    {
        printf("%c",res[i]);
        if ((len-i-1)&&(len-i-1)%3==0)
        {
            printf(",");
        }
    }
	return 0;
}
